package com.jy.show.common;

public enum ResultCode {
    SUCCESS(200,"请求成功"),
    LAYUI_SUCCESS(0,""),
    ALL_SUCCESS(0,""), //用户数据获取成功
    LOGIN_SUCCESS(200,"登录成功"),
    LOGIN_FAIL(900,"请检查用户名和密码"),
    LOGOUT_SUCCESS(200,"注销成功 "),
    REGIST(200,"注册成功"),
    REGIST_FAIL(900,"注册失败"),
    FAIL(9000,"请求失败"),
    NOT_LOGIN(9001,"请求失败");

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCode(int code, String msg){
        this.code=code;
        this.msg=msg;
    }
}
